<%@page import="com.fasterxml.jackson.annotation.JsonInclude.Include"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% 
		//付款金额
		String total_amount = new String(request.getParameter("total_amount").getBytes("ISO-8859-1"),"UTF-8");  
		 
%>


<html>
<script  type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
	$(function s() {
		alert(a)
	 	$.ajax({
			type : "POST",
			url : '<%=basePath%>his/chong',
			dataType : 'json',
			data : {
				"total_amount" :a,
		 	},
			success : function(result) {
				if (result.status == 0) {
					alert("充值成功"+<%=total_amount%>);
					  window.location.href="http://47.107.106.245:8080/TopUp/StudentCenten.jsp";
				}else if(result.status==1){
					 alert("失败")
				}
			 	},
			error : function(result) {
				 
				alert("异常！");
			}

		});
	})
</script>
<body>
 
 
</body>
</html>
